Edits history of script submission #300 for ' Do sentiment analysis with NLTK ("")'

  • python3
    #import wmill
    import nltk
    from nltk.sentiment import SentimentIntensityAnalyzer
    nltk.download("vader_lexicon")
    
    def main(text: str = "Wow, NLTK is really powerful!"):
        return SentimentIntensityAnalyzer().polarity_scores(text)

    Submitted by henri186 1019 days ago

  • python3
    #import wmill
    from nltk.sentiment import SentimentIntensityAnalyzer
    
    def main(text: str = "Wow, NLTK is really powerful!"):
        return SentimentIntensityAnalyzer().polarity_scores(text)

    Submitted by henri186 1179 days ago